// 全局的context，需要加的数据在这儿配置
import React from 'react'

type ContextType = {
     userInfo: Object;
     setUserInfo: React.Dispatch<React.SetStateAction<number>>;
    }
const AppContext = React.createContext<ContextType>({} as ContextType)
// 字典
interface DictItem {
  label: string,
  value: number | string,
  disabled?: boolean
}
// 用户
interface userType {
    createTime?: string,
    headImage?: string,
    id?: string,
    permissionCode?: string,
    remark?: string,
    roleId?: string,
    roleName?: string,
    status?: "Enable" | "Disable",
    statusName?: string,
    teamId?: string,
    teamLeader?: string,
    teamLeaderFlag?: "T" | "F"
    teamName?: string,
    teamType?: string,
    updateTime?: string,
    updateUser?: string,
    updateUserName?: string,
    userCode?: string,
    username?: string,
    token?: string
}

// 订单
interface orderType {
    fullAddressName?: string;
    // 预约办理日期
    'appointmentProcessingDate'?: string,
    // 业务团队编码
    'bizTeamId'?: number,
    // 业务团队名称
    'bizTeamName'?: string,
    // 业务员工号
    'bizTeamUserCode'?: string,
    // 业务员姓名
    'bizTeamUsername'?: string,
    // 业务类型ID
    'bizTypeId'?: number,
    // 业务类型
    'bizTypeName'?: string,
    // 套餐ID
    'comboId'?: number,
    // 套餐
    'comboName'?: string,
    'createTime'?: string,
    'createUser'?: string,
    'createUserName'?: string,
    // 客户住址
    'customerAddress'?: string,
    // 客户手持照
    'customerHandheldImgList'?: string[],
    // 客户信息
    'customerName'?: string,
    // 客户手机号
    'customerPhone'?: string,
    // 客户视频URL
    'customerVideoUrlList'?: string[],
    // 冻结金额
    'freezeAmount'?: number,
    // 礼物ID
    'giftId'?: number,
    // 礼物
    'giftName'?: string,
    'id'?: number,
    // 订单编码图片
    'orderCodeImgList'?: string[],
    // 备注
    'orderComment'?: string,
    // 订单编码
    'orderNo'?: string,
    // 其他照片
    'otherImgList'?: string[],
    // 手机串码图片路径
    'phoneSerialImgList'?: string[],
    // 手机来源
    'phoneSource'?: string,
    // 办理情况
    'processingDetail'?: string,
    // 办理主号
    'processingMainNumber'?: string,
    // 说明
    'remark'?: string,
    // 销售机型
    'salesModels'?: string,
    // 坐席派单时间
    'seatAssignmentTime'?: string,
    // 坐席团队编码
    'seatTeamId'?: number,
    // 坐席团队
    'seatTeamName'?: string,
    // 坐席人员
    'seatUserCode'?: string,
    // 坐席人员名称
    'seatUsername'?: string,
    // 订单状态
    'status'?: string,
    'statusName'?: string,
    // 团队派单时间
    'teamAssignmentTime'?: string,
    'updateTime'?: string,
    'updateUser'?: string,
    'updateUserName'?: string,
}
export { AppContext,
   DictItem,
   userType,
   orderType
  }
